package com.tang.model.command;

import com.tang.model.command.abst.ICommand;
import com.tang.model.command.impl.PauseCommand;
import com.tang.model.command.impl.PlayCommand;
import com.tang.model.command.impl.SpeedCommand;
import com.tang.model.command.impl.StopCommand;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/9/4 7:41
 * @Desc
 * @Remarks
 */
public class Test {
    public static void main(String[] args) {
        ICommand play = new PlayCommand();
        PlayerController controller = new PlayerController(new Player());
        controller.execCommand(play);

        controller.addCommand(new StopCommand());
        controller.addCommand(new PlayCommand());
        controller.addCommand(new PauseCommand());
        controller.addCommand(new SpeedCommand());
        controller.execCommands();
        controller.execCommands();
    }
}
